package com.example.administrator.testdate;


import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

/**
 * @author gqs
 * @version 创建时间：2012-11-23 上午10:59:43 类说明
 */
public class MyProgressDialog extends ProgressDialog {
	private TextView title;
	private Context context;
	private CharSequence msg;
	public MyProgressDialog(Context context, int theme) {
		super(context, theme);
	}

	public MyProgressDialog(Context context, CharSequence msg) {
		super(context);
		this.context = context;
		this.msg = msg;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.myprogressdialog);
		title = (TextView) findViewById(R.id.title);
		title.setText(msg);
	}

}